<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>3种遍历</title>
	</head>
	<body>
		<script>
		var a=new Array("java","JS","Mysql","Android");
		for (var i=0;i<a.length;i++){
			document.writeln(a[i]);
		}
		 document.writeln("<br>");
		 for(var j in a){
		 	document.writeln(a[j]);
		 }
		 document.writeln("<br>");
		 for(var value of a){
		 	document.writeln(value);
		 }
		</script>
	</body>
</html>
